﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Equation.Enterprise.Framework.Domain.Model;
using Equation.Enterprise.Tests.Framework.Domain.Model;

namespace Equation.Enterprise.Framework.Tests.Domain.Data.Mapping
{
    public class AddressMapping : EntityMapping<Address>
    {
        public AddressMapping() : base("Address")
        {
            Property(x => x.Id).HasColumnName("AddressId");
            HasRequired(x => x.User).WithRequiredDependent();
        }
    }
}
